package singleton.demo1.strategy.learn;

/**
 * Cat
 */
public class Cat extends Animal {
    public Cat(int w, int h){
        this.width=w;
        this.height=h;
    }
    // 因为用了策略模式所以这里就不实现了
    @Override
    public int compareTo(Animal o) {
        return 0;
    }

    @Override
    public String toString() {
        return this.width + "======" + this.height;
    }
}
